package com.meilai.project.controller.web.business.contract.dto;

import com.meilai.project.entity.business.contract.ContractAttachment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author xchen
 * @since 2022-03-13
 */
@Data
@ApiModel
public class ContractAttachmentReq {

	@ApiModelProperty(value = "合同名称")
	private String name;

	@ApiModelProperty(value = "合同地址")
	private String url;

	public ContractAttachment toPO(){
		ContractAttachment contractAttachment = new ContractAttachment();
		contractAttachment.setName(name);
		contractAttachment.setUrl(url);
		return contractAttachment;
	}
}
